package com.hellobike.haxing.response.shop;

import com.hellobike.haxing.search.vo.SearchDimension;
import com.hellobike.haxing.search.vo.SearchMarketingTagVo;
import com.hellobike.haxing.search.vo.SearchSkuVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@ApiModel("商品列表模型")
@Data
public class ProductListVo {
    @ApiModelProperty("主键")
    private Long id;
    @ApiModelProperty("商品title")
    private String title;
    @ApiModelProperty("副标题")
    private String subTitle;
    @ApiModelProperty(value = "主图")
    private String mainImage;
    @ApiModelProperty("销量")
    private Integer sold;
    @ApiModelProperty("商品中的最小价格")
    private BigDecimal minPrice;
    @ApiModelProperty("商品中的最小活动价格")
    private BigDecimal minPromotionPrice;
    @ApiModelProperty("活动类型，0没有活动，1-拼团 2-限时抢购")
    private Integer type;
    @ApiModelProperty("商品的Sku的所有规格关键词")
    private List<SearchDimension> dimensions;
    @ApiModelProperty("商品的营销标签")
    private SearchMarketingTagVo marketingTagVo;
    @ApiModelProperty("商品状态，1正常，0下架，2售空")
    private Integer state = 1;
    @ApiModelProperty("商品规格信息")
    private List<SearchSkuVo> skuList;
    @ApiModelProperty(value = "成团人数,当活动类型是拼团是有效")
    private Integer size;
}
